package com.qqtech.qquan.im.dao;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.qqtech.core.frame.dao.BaseDaoImpl;
import com.qqtech.qquan.im.model.*;

@Repository
public class ImUserDaoImpl extends BaseDaoImpl<ImUser> implements ImUserDao {
	public static final Logger log = LoggerFactory.getLogger(ImUserDaoImpl.class);

	@Override
	public ImUserVo getByImId(String imId) {
		return sqlSessionTemplate.selectOne(getSqlName("selectByImId"), imId);
	}

	@Override
	public ImUserVo getByUserId(Integer userId) {
		return sqlSessionTemplate.selectOne(getSqlName("selectByUserId"), userId);
	}
	
}
